<?php

class Admin extends CI_Controller {

	function __construct()
	{
		parent::__construct();
	}
	
	function index()
	{
		/*$this->load->view('inc.header.php');
		$this->load->view('admin/admin.php');
		$this->load->view('inc.footer.php');*/
		$this->users();
	}

	function users()
	{
		$this->load->view('inc.header.php');
		$this->load->view('admin/users/users.php');
		$this->load->view('admin/users/_popups/user_new.php');
		$this->load->view('inc.footer.php');
	}

		function user_roles()
		{
			$this->load->view('inc.header.php');
			$this->load->view('admin/users/roles/roles.php');
			$this->load->view('admin/users/roles/_popups/role_new.php');
			$this->load->view('inc.footer.php');
		}

		function user_permissions()
		{
			$this->load->view('inc.header.php');
			$this->load->view('admin/users/permissions/permissions.php');
			$this->load->view('admin/users/permissions/_popups/permission_new.php');
			$this->load->view('inc.footer.php');
		}

	function departments()
	{
		$this->load->view('inc.header.php');
		$this->load->view('admin/departments/departments.php');
		$this->load->view('admin/departments/_popups/new_department.php');
		$this->load->view('inc.footer.php');
	}

	function materials()
	{
		$this->load->view('inc.header.php');
		$this->load->view('admin/materials/materials.php');
		$this->load->view('admin/materials/_popups/material_new.php');
		$this->load->view('inc.footer.php');
	}

		function material_categories()
		{
			$this->load->view('inc.header.php');
			$this->load->view('admin/materials/categories/categories.php');
			$this->load->view('admin/materials/categories/_popups/category_new.php');
			$this->load->view('inc.footer.php');
		}

		function material_specs()
		{
			$this->load->view('inc.header.php');
			$this->load->view('admin/materials/specs/specs.php');
			$this->load->view('admin/materials/specs/_popups/spec_new.php');
			$this->load->view('inc.footer.php');
		}

}